﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000203 RID: 515
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueBuffInfo : IMessage<ChessRogueBuffInfo>, IMessage, IEquatable<ChessRogueBuffInfo>, IDeepCloneable<ChessRogueBuffInfo>, IBufferMessage
	{
		// Token: 0x170006C0 RID: 1728
		// (get) Token: 0x06001729 RID: 5929 RVA: 0x00041E41 File Offset: 0x00040041
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueBuffInfo> Parser
		{
			get
			{
				return ChessRogueBuffInfo._parser;
			}
		}

		// Token: 0x170006C1 RID: 1729
		// (get) Token: 0x0600172A RID: 5930 RVA: 0x00041E48 File Offset: 0x00040048
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueBuffInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170006C2 RID: 1730
		// (get) Token: 0x0600172B RID: 5931 RVA: 0x00041E5A File Offset: 0x0004005A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueBuffInfo.Descriptor;
			}
		}

		// Token: 0x0600172C RID: 5932 RVA: 0x00041E61 File Offset: 0x00040061
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueBuffInfo()
		{
		}

		// Token: 0x0600172D RID: 5933 RVA: 0x00041E69 File Offset: 0x00040069
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueBuffInfo(ChessRogueBuffInfo other) : this()
		{
			this.chessRogueBuffInfo_ = ((other.chessRogueBuffInfo_ != null) ? other.chessRogueBuffInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600172E RID: 5934 RVA: 0x00041E9E File Offset: 0x0004009E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueBuffInfo Clone()
		{
			return new ChessRogueBuffInfo(this);
		}

		// Token: 0x170006C3 RID: 1731
		// (get) Token: 0x0600172F RID: 5935 RVA: 0x00041EA6 File Offset: 0x000400A6
		// (set) Token: 0x06001730 RID: 5936 RVA: 0x00041EAE File Offset: 0x000400AE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueBuff ChessRogueBuffInfo_
		{
			get
			{
				return this.chessRogueBuffInfo_;
			}
			set
			{
				this.chessRogueBuffInfo_ = value;
			}
		}

		// Token: 0x06001731 RID: 5937 RVA: 0x00041EB7 File Offset: 0x000400B7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueBuffInfo);
		}

		// Token: 0x06001732 RID: 5938 RVA: 0x00041EC5 File Offset: 0x000400C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueBuffInfo other)
		{
			return other != null && (other == this || (object.Equals(this.ChessRogueBuffInfo_, other.ChessRogueBuffInfo_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001733 RID: 5939 RVA: 0x00041EF8 File Offset: 0x000400F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.chessRogueBuffInfo_ != null)
			{
				num ^= this.ChessRogueBuffInfo_.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001734 RID: 5940 RVA: 0x00041F34 File Offset: 0x00040134
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001735 RID: 5941 RVA: 0x00041F3C File Offset: 0x0004013C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001736 RID: 5942 RVA: 0x00041F45 File Offset: 0x00040145
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.chessRogueBuffInfo_ != null)
			{
				output.WriteRawTag(66);
				output.WriteMessage(this.ChessRogueBuffInfo_);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001737 RID: 5943 RVA: 0x00041F78 File Offset: 0x00040178
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.chessRogueBuffInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ChessRogueBuffInfo_);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001738 RID: 5944 RVA: 0x00041FB8 File Offset: 0x000401B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueBuffInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.chessRogueBuffInfo_ != null)
			{
				if (this.chessRogueBuffInfo_ == null)
				{
					this.ChessRogueBuffInfo_ = new ChessRogueBuff();
				}
				this.ChessRogueBuffInfo_.MergeFrom(other.ChessRogueBuffInfo_);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001739 RID: 5945 RVA: 0x0004200C File Offset: 0x0004020C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600173A RID: 5946 RVA: 0x00042018 File Offset: 0x00040218
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 66U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.chessRogueBuffInfo_ == null)
					{
						this.ChessRogueBuffInfo_ = new ChessRogueBuff();
					}
					input.ReadMessage(this.ChessRogueBuffInfo_);
				}
			}
		}

		// Token: 0x04000993 RID: 2451
		private static readonly MessageParser<ChessRogueBuffInfo> _parser = new MessageParser<ChessRogueBuffInfo>(() => new ChessRogueBuffInfo());

		// Token: 0x04000994 RID: 2452
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000995 RID: 2453
		public const int ChessRogueBuffInfo_FieldNumber = 8;

		// Token: 0x04000996 RID: 2454
		private ChessRogueBuff chessRogueBuffInfo_;
	}
}
